cc=/home/arte/workspace/driver/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-gcc
ld=/home/arte/workspace/driver/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-ld
objcp=/home/arte/workspace/driver/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-objcopy
objdmp=/home/arte/workspace/driver/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-objdump


all: start.o led.o uart.o init.o main.o exception.o
	$(ld) -T sdram.lds $^ -o sdram.elf
	$(objcp) -O binary -S sdram.elf sdram.bin
	$(objdmp) -D sdram.elf > sdram.dis
clean:
	rm *.bin *.o *.elf *.dis
	
%.o : %.c
	$(cc) -c -o $@ $<

%.o : %.S
	$(cc) -c -o $@ $<
	
